---
page_title: "cloudflare_managed_headers Resource - Cloudflare"
subcategory: ""
description: |-
  The Cloudflare Managed Headers https://developers.cloudflare.com/rules/transform/managed-transforms/
  allows you to add or remove some predefined headers to one's
  requests or origin responses.
---

# cloudflare_managed_headers (Resource)

The [Cloudflare Managed Headers](https://developers.cloudflare.com/rules/transform/managed-transforms/)
allows you to add or remove some predefined headers to one's
requests or origin responses.

## Example Usage

```terraform
# Enable security headers using Managed Meaders
resource "cloudflare_managed_headers" "example" {
  zone_id = "0da42c8d2132a9ddaf714f9e7c920711"

  managed_request_headers {
    id      = "add_true_client_ip_headers"
    enabled = true
  }

  managed_response_headers {
    id      = "remove_x-powered-by_header"
    enabled = true
  }
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `zone_id` (String) The zone identifier to target for the resource.

### Optional

- `managed_request_headers` (Block Set) The list of managed request headers. (see [below for nested schema](#nestedblock--managed_request_headers))
- `managed_response_headers` (Block Set) The list of managed response headers. (see [below for nested schema](#nestedblock--managed_response_headers))

### Read-Only

- `id` (String) The ID of this resource.

<a id="nestedblock--managed_request_headers"></a>
### Nested Schema for `managed_request_headers`

Required:

- `enabled` (Boolean) Whether the headers rule is active.
- `id` (String) Unique headers rule identifier.


<a id="nestedblock--managed_response_headers"></a>
### Nested Schema for `managed_response_headers`

Required:

- `enabled` (Boolean) Whether the headers rule is active.
- `id` (String) Unique headers rule identifier.


